<?php

/**
 * Caja form base class.
 *
 * @package    tercermilenio
 * @subpackage form
 * @author     Your name here
 */
class BaseCajaForm extends BaseFormPropel
{
  public function setup()
  {
    $this->setWidgets(array(
      'cja_id'     => new sfWidgetFormInputHidden(),
      'cja_monto'  => new sfWidgetFormInput(),
      'cja_op'     => new sfWidgetFormInput(),
      'created_at' => new sfWidgetFormDateTime(),
    ));

    $this->setValidators(array(
      'cja_id'     => new sfValidatorPropelChoice(array('model' => 'Caja', 'column' => 'cja_id', 'required' => false)),
      'cja_monto'  => new sfValidatorNumber(),
      'cja_op'     => new sfValidatorInteger(),
      'created_at' => new sfValidatorDateTime(),
    ));

    $this->widgetSchema->setNameFormat('caja[%s]');

    $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);

    parent::setup();
  }

  public function getModelName()
  {
    return 'Caja';
  }


}
